package com.example.demo.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;

@Data
@Entity
public class Department {

    @Id
    private Integer id;

    @Column(
            length = 20,
            nullable = false,
            unique = true
    )
    private String name;
}
